﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace PreContractWeb
{
    public partial class SubForm : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            bool flag = Global.MaintainStatus;

            // 数据维护中
            if (Request.Url.AbsolutePath.ToUpper().Contains("REPORT"))
            {
                if (flag)
                {
                    string js = @"<script>var pWin=window.parent;
                            if (pWin!=null)
                            {
                                var spnMaintainStatus=pWin.document.getElementById('spnMaintainStatus');
                                var pos=pWin.document.getElementById('spnPosition');
                                if (pos!=null)
                                {
                                    if (pos.innerText.indexOf('报表查询')!= -1)
                                    {
                                     spnMaintainStatus.innerText=  '......数据维护中......';
                                    }
                                }

                            }</script>";

                    Response.Write(js);
                }
            }
        }
    }
}
